package org.zjkoye.crm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author zjkoye
 * @since 2024-06-23
 */
@Schema(name = "Workorder", description = "")
public class Workorder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "work_order_id", type = IdType.AUTO)
    private Integer workOrderId;

    private Integer businessId;

    private String status;

    private LocalDateTime dispatchTime;

    private LocalDateTime returnTime;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    private String operator;

    private String regionName;

    public void setRegionName(String regionName) {this.regionName = regionName;}

    public String getRegionName() {return regionName;}

    public Integer getWorkOrderId() {
        return workOrderId;
    }

    public void setWorkOrderId(Integer workOrderId) {
        this.workOrderId = workOrderId;
    }

    public Integer getBusinessId() {
        return businessId;
    }

    public void setBusinessId(Integer businessId) {
        this.businessId = businessId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public LocalDateTime getDispatchTime() {
        return dispatchTime;
    }

    public void setDispatchTime(LocalDateTime dispatchTime) {
        this.dispatchTime = dispatchTime;
    }

    public LocalDateTime getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(LocalDateTime returnTime) {
        this.returnTime = returnTime;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    @Override
    public String toString() {
        return "Workorder{" +
            "workOrderId = " + workOrderId +
            ", businessId = " + businessId +
            ", status = " + status +
            ", dispatchTime = " + dispatchTime +
            ", returnTime = " + returnTime +
            ", createdAt = " + createdAt +
            ", updatedAt = " + updatedAt +
            ", operator = " + operator +
        "}";
    }
}
